{include file="header.html"}
<script type="text/javascript">
$(function(){
    $('#operator_form').validate({
    	 errorPlacement: function(error, element){
             //$(element).next('.noerror').hide();
             //$(element).after(error);
         },
         success       : function(element){
         	 $(element).next('.noerror').show();  
         	 $(element).remove();
         },
        rules : {  
        	o_code : {
                required : true
            },
        	o_name : {
                required : true
            },
            o_linkman :{
                required : true,
             
            },
            o_linktel    :{
            	required : true,
            	number : true
            },
            o_address:{
            	required : true
            }
            
            
        },
        messages : {
        	o_code : {
                required : '编码必填'
            },
        	o_name : {
                required : '名称必填'
            },
            o_linkman : {
            	required : '联系人必填',
             
            },
            o_linktel    : {
            	required : '联系人电话必填',
            	number : '必须为数字'
            },
            o_address : {
            	required : '地址必填'
            }
        }
    });
    
});

</script>





<div id="rightTop">
    <p>运营商</p>
    <ul class="subnav">
        <li><a class="btn1" href="index.php?app=operator">{$lang.manage}</a></li>
  
      	<!-- {if $operator.o_tid}} -->
      	
		<li>
			<a class="btn1" href="index.php?app=operator&amp;act=add">{$lang.add}</a>
		</li>
		<li>
			<span>编辑</span></li>
		<!-- {else} -->
		<li>
			<span>新建</span>
			</li><!-- {/if} --> 
			 </ul>
</div>

<div class="info">
    <form method="post" enctype="multipart/form-data" id="operator_form">
        <table class="infoTable" >
             <tr>
                <th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b> {$lang.o_code}:</th>
                <td class="paddingT15 wordSpacing5"  >
                    <input class="infoTableInput2" style="float: left; " id="o_code" type="text" name="o_code" value="{$operator.o_code}" />
                </td>
            </tr>
            <tr>
                <th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>{$lang.o_name}:</th>
                <td class="paddingT15 wordSpacing5">
                    <input class="infoTableInput2" style="float: left;" id="o_name" type="text" name="o_name" value="{$operator.o_name}" />
                </td>
            </tr>
            <tr>
                <th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>{$lang.o_linkman}:</th>
                <td class="paddingT15 wordSpacing5">
                    <input class="infoTableInput2" style="float: left;" id="o_linkman" type="text" name="o_linkman" value="{$operator.o_linkman}" />
                </td>
            </tr>
            <tr>
                <th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>{$lang.o_linktel}:</th>
                <td class="paddingT15 wordSpacing5">
                    <input class="infoTableInput2" style="float: left;" id="o_linktel" type="text" name="o_linktel" value="{$operator.o_linktel}" />
                </td>
            </tr>
            <tr>
                <th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>地址:</th>
                <td class="paddingT15 wordSpacing5">
                    <input class="infoTableInput2" style="float: left;" id="o_address" type="text" name="o_address" value="{$operator.o_address}" />
                </td>
            </tr>
            <tr>
                <th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>承运人:</th>
                <td class="paddingT15 wordSpacing5">
                    <input style="float: left;" id="rec_yes" type="radio" name="o_carrier" value="1" {if $operator.o_carrier eq 1}checked="checked"{/if}/>
                    <label  style="color:#444;" for="rec_yes">{$lang.yes}</label>
                    <input style="float: left;" id="rec_no" type="radio" name="o_carrier" value="0" {if  $operator.o_carrier eq 0}checked="checked"{/if}/>
                    <label style="color:#444;" for="rec_no">{$lang.no}</label>
                </td>
            </tr>
            <tr>
                <th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>货主:</th>
                <td class="paddingT15 wordSpacing5">
                    <input style="float: left;" id="rec_yes" type="radio" name="o_consignor" value="1" {if $operator.o_consignor eq 1}checked="checked"{/if}/>
                    <label  style="color:#444;" for="rec_yes">{$lang.yes}</label>
                    <input style="float: left;" id="rec_no" type="radio" name="o_consignor" value="0" {if $operator.o_consignor eq 0}checked="checked"{/if}/>
                    <label style="color:#444;" for="rec_no">{$lang.no}</label>
                </td>
            </tr>
            <tr>
                <th></th>
                <td class="ptb20">
                    <input style="float: left;" class="formbtn" type="submit" name="Submit" value="{$lang.submit}" />
                </td>
            </tr>
        </table>
    </form>
</div>
{include file="footer.html"}
